package com.asohofrucol.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.asohofrucol.model.Option;

public interface OptionDao extends JpaRepository<Option, Long> {
	@Query("select o from Option o where o.idField in (:idField) order by o.description")
	public List<Option> findByField(@Param("idField") List<String> idField);
}
